package com.sunmnet.j2ee.bean.powerdb.designer.chart;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * <PRE>
 * 线对象间的关系
 * </PRE>
 * <B>项    目：</B>J2EE开发平台
 * <B>技术支持：</B>三盟科技 (c) 2016
 *
 * @author 黄坚：huangjian@sunmnet.com
 * @version 1.0 2016/8/9
 * @since jdk版本：jdk1.7
 */
public class Multiplicity {

	private BePropertiesRel start;

	private BePropertiesRel end;

	public Multiplicity() {}

	public Multiplicity(BePropertiesRel start, BePropertiesRel end) {
		this.start = start;
		this.end = end;
	}

	/**
	 * get end
	 *
	 * @return com.sunmnet.j2ee.bean.powerdb.designer.chart.BePropertiesRel
	 */
	public BePropertiesRel getEnd() {
		return end;
	}

	/**
	 * set end
	 */
	public void setEnd(BePropertiesRel end) {
		this.end = end;
	}

	/**
	 * get start
	 *
	 * @return com.sunmnet.j2ee.bean.powerdb.designer.chart.BePropertiesRel
	 */
	public BePropertiesRel getStart() {
		return start;
	}

	/**
	 * set start
	 */
	public void setStart(BePropertiesRel start) {
		this.start = start;
	}

	/*
		 * (non-Javadoc)
		 *
		 * @see java.lang.Object#toString()
		 */
	@Override
	public String toString() {
		return new ReflectionToStringBuilder(
				this,
				ToStringStyle.MULTI_LINE_STYLE)
				.toString();
	}
}
